package templete_chanin;

// 具体处理器A
public class ConcreteHandlerA extends HandlerTemplate {
    @Override
    protected void processRequest(int request) {
        System.out.println("ConcreteHandlerA 处理请求：" + request);
    }

    @Override
    protected boolean canHandle(int request) {
        return request < 10;
    }
}

